package com.jie.common.exception.entity;

/**
 * 自定义异常
 * @author XieZhiJie
 * @date 2022/04/21 15:21
 */
public class JieException extends RuntimeException {

    /**
     * 异常状态码
     */
    private Integer status;

    /**
     * 异常信息
     */
    private String message;

    public JieException(String message) {
        this(0, message);
    }

    public JieException(Integer status, String message) {
        this.status = status;
        this.message = message;
    }

    public Integer getStatus() {
        return this.status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
